﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BrnMall.Web.Framework;
using BrnMall.Manager.Domain.User;
using System.Web.Mvc;

namespace BrnMall.Web.StoreAdmin.Models
{
    public class CashItemListModel
    {
        public IList<CashItem> List { get; set; }
        public PageModel PageModel { get; set; }
    }

    public class CashOrderListModel
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OSN { get; set; }
        /// <summary>
        /// 账户名
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderState { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTime { get; set; }
        /// <summary>
        /// 订单列表
        /// </summary>
        public IList<CashOrderView> List { get; set; }

        public PageModel PageModel { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public IList<SelectListItem> OrderStateList { get; set; }
    }


    public class CashOrderView : CashOrder
    {
        /// <summary>
        /// 账户名
        /// </summary>
        public string AccountName { get; set; }
    }

    public class CashRecordView : CashRecord
    {
        /// <summary>
        /// 账户名
        /// </summary>
        public string AccountName { get; set; }
    }

    public class CashRecordListModel
    {
        public int uid { get; set; }

        /// <summary>
        /// 账户名
        /// </summary>
        public string AccountName { get; set; }

        public string StartTime { get; set; }

        public string EndTime { get; set; }
        /// <summary>
        /// 消费明细
        /// </summary>
        public IList<CashRecordView> List { get; set; }

        public PageModel PageModel { get; set; }
        /// <summary>
        /// 收支类型
        /// </summary>
        public int Direction { get; set; }
        /// <summary>
        /// 时间段内总收入
        /// </summary>
        public decimal TimeInMoney { get; set; }
        /// <summary>
        /// 时间段内中支出
        /// </summary>
        public decimal TimeOutMoney { get; set; }
    }

    public class ReportSearchModel
    {
        public string AccountName { get; set; }

        public string StartTime { get; set; }

        public string EndTime { get; set; }
        /// <summary>
        /// 时间段内总收入
        /// </summary>
        public decimal TotalInMoney { get; set; }
        /// <summary>
        /// 时间段内总支出
        /// </summary>
        public decimal TotalOutMoney { get; set; }

        /// <summary>
        /// 余额支付金额
        /// </summary>
        public decimal PayCash { get; set; }
        /// <summary>
        /// 积分金额
        /// </summary>
        public decimal PayCreditMoney { get; set; }
        /// <summary>
        /// 优惠劵金额
        /// </summary>
        public decimal CouponMoney { get; set; }
        /// <summary>
        /// 满减
        /// </summary>
        public decimal FullCut { get; set; }
        /// <summary>
        /// 剩余支付
        /// </summary>
        public decimal SurplusMoney { get; set; }

        /// <summary>
        /// 充值金额
        /// </summary>
        public decimal CashMoney { get; set; }
    }
}